package com.hspedu.common.exception;

/**
 * @author: xujiabing
 * @date: 2024/6/15 22:03
 * @description 自定义统一异常状态码
 */
public enum HsplivingCodeEnum {
    UNKNOWN_EXCEPTION(40000,"系统未知错误,请联系管理员处理"),
    INVALID_EXCEPTION(40001,"参数校验异常")
    ;
    private int code;
    private String message;

    HsplivingCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
